import java.io.*;
import java.util.*;
public class CheckedExceptionDemo {
	public static void main(String[] args) {
		try{
			FileInputStream fis=new FileInputStream("aaa.txt");
			int temp=fis.read();
			System.out.println(temp);
		}catch(FileNotFoundException ex){
			System.out.println(ex.getMessage());
		}catch(IOException ex){
			System.out.println(ex.getMessage());
		}
		

	}

}
